package com.ctgu.edu.service.impl;

import com.ctgu.edu.dao.RecruiterMapper;
import com.ctgu.edu.pojo.Recruiter;
import com.ctgu.edu.pojo.Resume;
import com.ctgu.edu.service.RecruiterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class RecruiterServiceImpl implements RecruiterService {

    @Autowired
    @Qualifier("recruiterMapper")
    private RecruiterMapper recruiterMapper;

    public void addRecruiter(Recruiter recruiter) {
        recruiterMapper.addRecruiter(recruiter);
    }

    public void deleteRecruiterById(Integer recruiterId) {
        recruiterMapper.deleteRecruiterById(recruiterId);
    }

    public void updateRecruiter(Recruiter recruiter) {
        recruiterMapper.updateRecruiter(recruiter);
    }

    public Recruiter getRecruiterById(Integer recruiterId) {
        return recruiterMapper.getRecruiterById(recruiterId);
    }

    public Recruiter getRecruiterByAccountId(String recruiterAccountId) {
        return recruiterMapper.getRecruiterByAccountId(recruiterAccountId);
    }


}
